/*******************************************************************************
 * Licensed Material - Property of IBM
 * (C) Copyright IBM Corp. 2004, 2006 - All Rights Reserved.
 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 *******************************************************************************/
/*
 * Created on Aug 30, 2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package sample.cics;
import sample.cics.data.*;

/**
 * @author ivyho
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class TestCustomer {

	public static void main(String[] args) {
		
		try {
			
			
			CustomerInfo input = new CustomerInfo();
			input.setCustomerNumber("12345");
		
			CustomerImpl proxy = new CustomerImpl();
			CustomerInfo output = proxy.getCustomer(input);
			System.out.println("\nCustomerNo:"+output.getCustomerNumber()+"\ncustomer First Name:"+output.getFirstName()+"\ncustomer Last Name:"+ output.getLastName()+ "\nAddress:" +output.getStreet()+" \nCity:" + output.getCity()+" \nCountry:"+output.getCountry() +" \nphone:"+output.getPhone());
			
				
			 input.setCustomerNumber("44444");
		
			 proxy = new CustomerImpl();
			 output = proxy.getCustomer(input);
					
			 System.out.println("\nCustomerNo:"+output.getCustomerNumber()+"\ncustomer First Name:"+output.getFirstName()+"\ncustomer Last Name:"+ output.getLastName()+ "\nAddress:" +output.getStreet()+" \nCity:" + output.getCity()+" \nCountry:"+output.getCountry() +" \nphone:"+output.getPhone());
				
			
		}catch (Exception e)
		{
			e.printStackTrace();
		}
		
		
		
		
	}
}
